package sensorSelectionFramework;

import java.util.ArrayList;
import java.util.List;

public class SensorSet {
	protected List<Sensor> sensorList = new ArrayList<Sensor>();
    protected int totalCost = 0;
    protected int totalBenefit = 0;
    protected int sensorNumber = 0;
    
    public int getSensorNumber() {
		return this.sensorList.size();
	}

	public int getTotalCost() {
		return totalCost;
	}

	public void setTotalCost() {
		for(Sensor sensor:sensorList)
		{
			totalCost += sensor.getCost();
		}
	}

	public int getTotalBenefit() {
		return totalBenefit;
	}

	public void setTotalBenefit() {
		for(Sensor sensor:sensorList)
		{
			totalBenefit += sensor.getValue();
		}
	}

    
	public void setSensorList(List<Sensor> sensorList) {
		this.sensorList = sensorList;
	}

	public List<Sensor> getSensorList() {
		return sensorList;
	}
	

}
